home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / misc / egs.lha / EGS / EGS_Devels / Examples / EGS_Requester / Global.h < prev    next >
C/C++ Source or Header  |  1993-02-17  |  4KB  |  202 lines

  1. /*
  2. ** Autor: Markus van Kempen
  3. ** Date : 18. Dezember 1992
  4. **
  5. ** Global variables & structures
  6. **
  7. **
  8. ** See myopen.c
  9. **
  10. **/
  11.  
  12. #include "includes.c"
  13. #include "protos.h"
  14. /*
  15. **    DEFINE's
  16. **
  17. */
  18.  
  19. /**** Define's for window *****/
  20.  
  21. /*
  22. **   Window system gadgets
  23. **
  24. */
  25.  
  26. #define myWinGtmp (EI_WINDOWDRAG  | EI_WINDOWSIZE )
  27. #define myWinGads (EI_WINDOWCLOSE | EI_WINDOWBACK | myWinGtmp )
  28.  
  29. /*
  30. EI_WINDOWDRAG |
  31. EI_WINDOWCLOSE |
  32. EI_WINDOWSIZE |
  33. EI_WINDOWFRONT |
  34. EI_WINDOWBACK,
  35. EI_WINDOWFLIP
  36. EI_WINDOWBIG
  37. EI_WINDOWSMALL
  38. EI_WINDOWICON
  39. EI_WINDOWARROWL
  40. EI_WINDOWARROWR
  41. EI_WINDOWARROWU
  42. EI_WINDOWARROWD
  43. EI_WINDOWSCROLLH
  44. EI_WINDOWSCROLLV
  45. EI_WINDOWDRAG
  46. */
  47.  
  48. /*
  49. ** Flags for window
  50. */
  51. #define mywf1       (EI_FRONTBACKGADGET | EI_WINDOWCENTER)
  52. #define mywf2       (EI_SIZEBBOTTOM | EI_GIMMEZEROZERO | mywf1)
  53. #define myWinFlags  (EI_WINDOWACTIVE | EI_WINDOW_MENULOCAL | mywf2)
  54.  
  55.  
  56. /* Corresponding EI_WindowFlagSet has 32 bits ! */
  57.  
  58. /*
  59.  
  60. EI_WINDOWACTIVE     |
  61. EI_WINDOW_MENULOCAL |
  62. EI_FRONTBACKGADGET  |
  63. EI_WINDOWCENTER     |
  64. EI_SIMPLE_REFRESH   |
  65. EI_GIMMEZEROZERO    |
  66. EI_SIZEBRIGHT       ,
  67.  
  68. EI_GIMMEZEROZERO
  69. EI_BORDERLESS
  70. EI_SUPER_BITMAP
  71. EI_SIMPLE_REFRESH
  72. EI_WINDOWREFRESH
  73. EI_WINDOWACTIVE
  74. EI_WINDOW_MENULOCAL
  75. EI_OWN_IDCMPPORT
  76. EI_OWN_COLORPALETTE
  77. EI_FRONTBACKGADGET
  78. EI_RMBTRAP
  79. EI_REPROTMOUSE
  80. EI_BACKDROP
  81. EI_SMART_REFRESH
  82. EI_WINDOW_MENUPOPUP
  83. EI_SIZEBBOTTOM
  84. EI_SIZEBRIGHT
  85. EI_WINDOW_USERSTYLE
  86. EI_ACTIVETOFRONT
  87. EI_QUICKSCROLL
  88. EI_WINDOW_SLEEPING
  89. EI_FIXWINDOW_RATIO
  90. EI_FORCE_TO_SCREEN
  91. EI_WINDOWCENTER
  92. EI_SENDOUT_SIDEMOVES
  93. */
  94.  
  95. /*
  96. **
  97. **   EIDCMP-FLAGS
  98. */
  99.  
  100. #define myif          (EI_iGADGETUP | EI_iMENUPICK | EI_iSIZEVERIFY)
  101. #define myEdcmpFlags  (EI_iCLOSEWINDOW | EI_iNEWSIZE | myif)
  102.  
  103. /*
  104.    Corresponding EI_EIDCMPFlagSet has 32 bits !
  105.    IDCMP -Flags
  106. */
  107.  
  108. /*
  109. EI_iCLOSEWINDOW |
  110. EI_iMOVEWINDOW  |
  111. EI_iSIZEVERIFY  |
  112. EI_iNEWSIZE     |
  113. EI_iMENUPICK,
  114. EI_iMOUSEBOTTONS
  115. EI_iMOUSEMOVE
  116. EI_iRAWKEY
  117. EI_iACTIVEWINDOW
  118. EI_iREFRESHWINDOW
  119. EI_iCLOSEWINDOW
  120. EI_iNEWSIZE
  121. EI_iGADGETDOWN
  122. EI_iGADGETUP
  123. EI_iMENUVERIFY
  124. EI_iVANILLAKEY
  125. EI_iSIZEVERIFY
  126. EI_iINACTIVEWINDOW
  127. EI_iINTUITICKS
  128. EI_iDISKINSERT
  129. EI_iDISKREMOVE
  130. EI_iNEWPREFS
  131. */
  132.  
  133. /*
  134. **
  135. **  Global variables
  136. **
  137. */
  138.  
  139. int                 dummy;
  140. EI_MenuPtr          Menu        =NULL;
  141. EG_EFontPtr         FontforMenu =NULL;
  142. EG_EFontPtr         FontforGad  =NULL;
  143. EG_EFontPtr         FontforScr  =NULL;
  144. struct EI_Window    *Window     =NULL;
  145. ER_SimpleRequestPtr ErrorReq    =NULL;
  146. EB_GadContext       con         =NULL;
  147.  
  148. /*
  149. **  myopen()
  150. */
  151.  
  152. struct OpenStructTyp
  153. {
  154.         ULONG *Base;
  155.         char  *Name;
  156.         ULONG Version;
  157. };
  158.  
  159. /*
  160.  * The EGS lib bases
  161.  *
  162.  */
  163.  
  164. struct Library *EGSBase;
  165. struct Library *EGSBlitBase;
  166. struct Library *EGSLayersBase;
  167. struct Library *EGSGfxBase;
  168. struct Library *EGSIntuiBase;
  169. struct Library *EGBBase;
  170. struct Library *EGSRequestBase;
  171. struct Library *EGBMenuSelectBase;
  172. struct Library *EGBRadioBase;
  173. struct Library *EGBScrollBase;
  174. struct Library *EGBSelectBase;
  175. struct Library *EGBSetBase;
  176. struct Library *EGBTextInfoBase;
  177.  
  178. /********************************************/
  179.  
  180. struct OpenStructTyp OpenStruct[] =
  181. {
  182.   { (ULONG*) &EGSBase          , "egs.library",0               },
  183.   { (ULONG*) &EGSBlitBase      , "egsblit.library",0           },
  184.   { (ULONG*) &EGSLayersBase    , "egslayers.library",0         },
  185.   { (ULONG*) &EGSGfxBase       , "egsgfx.library",0            },
  186.   { (ULONG*) &EGSIntuiBase     , "egsintui.library",0          },
  187.   { (ULONG*) &EGBBase          , "egsgadbox.library",0         },
  188.   { (ULONG*) &EGSRequestBase   , "egsrequest.library",0         },
  189.   { (ULONG*) &EGBMenuSelectBase, "egb/gbmenuselect.library",0  },
  190.   { (ULONG*) &EGBRadioBase     , "egb/gbradio.library",0       },
  191.   { (ULONG*) &EGBScrollBase    , "egb/gbscrollbox.library",0   },
  192.   { (ULONG*) &EGBSelectBase    , "egb/gbselect.library",0      },
  193.   { (ULONG*) &EGBSetBase       , "egb/gbsets.library",0        },
  194.   { (ULONG*) &EGBTextInfoBase  , "egb/gbtextinfo.library",0    },
  195.   { 0L,0L,0L }
  196. };
  197.  
  198.  
  199.  
  200.  
  201.  
  202.